package com.CmJava.servlet.modelAndView;



public class ModelAndViewContainer {

    private Object view;
    //model封装类
    private ModelMap defaultModel;
    //重定向的model封装类
    private ModelMap redirectModel;


    public ModelAndViewContainer() {
    }

    public void setViewName(String viewName) {
        this.view = viewName;
    }

    public ModelMap getModel() {
        return this.defaultModel;
    }

    public Object getViewName() {
        return this.view;
    }
}
